gtk4.git
8 years agogskrendernodeimpl: Fix leak of cairo_pattern_t
Daniel Boles [Thu, 3 Aug 2017 23:18:13 +0000 (00:18 +0100)]
gskrendernodeimpl: Fix leak of cairo_pattern_t

It was not destroyed after setting it on the cairo_context_t, as it is
in every other case.

https://bugzilla.gnome.org/show_bug.cgi?id=785793

8 years agoWindow: Also quote Window address in Popover error
Daniel Boles [Thu, 3 Aug 2017 20:09:25 +0000 (21:09 +0100)]
Window: Also quote Window address in Popover error

This is symmetrical with how we already do that for the Popover, and it
could be useful for debugging.

8 years agowidget-factory: Add tooltip to Entry icon
Daniel Boles [Thu, 3 Aug 2017 19:42:54 +0000 (20:42 +0100)]
widget-factory: Add tooltip to Entry icon

just to show we can.

8 years agoFix some nullable Returns annotations
Daniel Boles [Thu, 3 Aug 2017 19:26:18 +0000 (20:26 +0100)]
Fix some nullable Returns annotations

based on reports and patches by Iñaki García Etxebarria:

https://bugzilla.gnome.org/show_bug.cgi?id=781246
https://bugzilla.gnome.org/show_bug.cgi?id=785423

8 years agoinspector: Fix object title label alignment
Timm Bäder [Thu, 3 Aug 2017 16:24:42 +0000 (18:24 +0200)]
inspector: Fix object title label alignment

Re-center it after the center-child removal in GtkBox and the addition
of GtkCenterBox.

8 years agoGtkFixed: Update documentation intro
Daniel Boles [Thu, 3 Aug 2017 11:42:20 +0000 (12:42 +0100)]
GtkFixed: Update documentation intro

• Add GtkLayout as a @See_also since it includes fixed-pos functionality
• Drop mention of the long-gone Linux framebuffer port
• Explain how to work around the problems with RTL text

8 years agoUpdated Czech translation
Marek Cernocky [Thu, 3 Aug 2017 09:51:09 +0000 (11:51 +0200)]
Updated Czech translation

8 years agoLayout: Tweak documentation blurb
Daniel Boles [Thu, 3 Aug 2017 09:13:52 +0000 (10:13 +0100)]
Layout: Tweak documentation blurb

Being addable to a ScrolledWindow is not interesting; now that SW
auto-adds a Viewport if needed, so can DrawingArea and any other widget.

Mention GtkFixed in case the reader just wants that bit of functionality

8 years agoentry: get_icon_area returns in entry coordinates
Timm Bäder [Thu, 3 Aug 2017 09:14:53 +0000 (11:14 +0200)]
entry: get_icon_area returns in entry coordinates

This fixes the popover positions in the gtk4-demo/popovers, and it also
just makes sense. Also document what the returned coordinates are
relatiev to.

8 years agopopover: Fix arrow position
Timm Bäder [Thu, 3 Aug 2017 09:03:39 +0000 (11:03 +0200)]
popover: Fix arrow position

Remove all the manual css margin handling since that's being done for us
automatically now.

8 years agoUpdate POTFILES.in
Piotr Drąg [Wed, 2 Aug 2017 16:05:30 +0000 (18:05 +0200)]
Update POTFILES.in

8 years agoeventbox: Remove
Benjamin Otte [Wed, 2 Aug 2017 15:59:09 +0000 (16:59 +0100)]
eventbox: Remove

8 years agotexthandle: Don't use GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:58:47 +0000 (16:58 +0100)]
texthandle: Don't use GtkEventBox

8 years agotestsuite: Don't use GtkEventBox in gestures test
Benjamin Otte [Wed, 2 Aug 2017 15:58:17 +0000 (16:58 +0100)]
testsuite: Don't use GtkEventBox in gestures test

8 years agoa11y: Remove check for GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:58:05 +0000 (16:58 +0100)]
a11y: Remove check for GtkEventBox

8 years agodocs: Don't use GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:55:25 +0000 (16:55 +0100)]
docs: Don't use GtkEventBox

8 years agotestsuite: Remove GtkEventBox from a11y test
Benjamin Otte [Wed, 2 Aug 2017 15:47:39 +0000 (16:47 +0100)]
testsuite: Remove GtkEventBox from a11y test

8 years agoiconbrowser: Remove GtkEventBox usage
Benjamin Otte [Wed, 2 Aug 2017 13:50:19 +0000 (14:50 +0100)]
iconbrowser: Remove GtkEventBox usage

8 years agogtk-demo: Get rid of GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 12:59:26 +0000 (13:59 +0100)]
gtk-demo: Get rid of GtkEventBox

8 years agocellaccel: Get rid of GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 12:49:36 +0000 (13:49 +0100)]
cellaccel: Get rid of GtkEventBox

Can't test the code atm because treeview editing is broken, let's hope
it works once that's fixed.

8 years agoplacessidebar: Remove EventBox usage
Benjamin Otte [Wed, 2 Aug 2017 12:12:17 +0000 (13:12 +0100)]
placessidebar: Remove EventBox usage

8 years agoplacesview: Remove event box usage
Benjamin Otte [Wed, 2 Aug 2017 11:12:58 +0000 (12:12 +0100)]
placesview: Remove event box usage

8 years agomeson: Add missing Wayland protocol
Emmanuele Bassi [Wed, 2 Aug 2017 11:31:30 +0000 (12:31 +0100)]
meson: Add missing Wayland protocol

GDK depends on a new Wayland protocol.

8 years agowayland: add shortcut inhibitor support
Olivier Fourdan [Wed, 22 Mar 2017 09:21:02 +0000 (10:21 +0100)]
wayland: add shortcut inhibitor support

This adds support for the shortcut inhibitor protocol in gdk/wayland
backend.

A shortcut inhibitor request is issued from the gdk wayland backend for
both the older, deprecated API gdk_device_grab() and the new gdk seat
API gdk_seat_grab(), but only if the requested capability is for the
keyboard only.

https://bugzilla.gnome.org/show_bug.cgi?id=783343

8 years agoreftests: Always wait for rendering to settle
Benjamin Otte [Wed, 2 Aug 2017 10:32:50 +0000 (11:32 +0100)]
reftests: Always wait for rendering to settle

We wait for a few 100ms for rendering to settle in various WMs. So far
we only did that for windows that were controlled by the WM (aka
toplevels).

With modern compositing gnome-shell however, this now also applies to
override-redirect windows, so we now wait there, too.

This makes the reftests a lot slower, but they now actually work when
running make check in gnome-shell.

8 years agoreftests: Remove event box usage
Benjamin Otte [Wed, 2 Aug 2017 09:52:30 +0000 (10:52 +0100)]
reftests: Remove event box usage

8 years agotestuite: Remove EventBox from builder test
Benjamin Otte [Wed, 2 Aug 2017 09:48:01 +0000 (10:48 +0100)]
testuite: Remove EventBox from builder test

8 years agoUpdated Slovenian translation
Matej Urbančič [Wed, 2 Aug 2017 08:42:45 +0000 (10:42 +0200)]
Updated Slovenian translation

8 years agowidget: Constify state parameter of propagate_state
Timm Bäder [Tue, 1 Aug 2017 19:31:24 +0000 (21:31 +0200)]
widget: Constify state parameter of propagate_state

Makes sense.

8 years agowidget: Don't try to propagate 0 state flags
Timm Bäder [Tue, 1 Aug 2017 19:30:20 +0000 (21:30 +0200)]
widget: Don't try to propagate 0 state flags

This happens quite often and has no effect anyway.

8 years agowidget: Fix size_allocate's out_clip annotation
Timm Bäder [Tue, 1 Aug 2017 17:39:32 +0000 (19:39 +0200)]
widget: Fix size_allocate's out_clip annotation

8 years agotestgtk: Actually expand the scrolled window
Benjamin Otte [Tue, 1 Aug 2017 23:23:43 +0000 (00:23 +0100)]
testgtk: Actually expand the scrolled window

8 years agotestgtk: Get rid of GtkEventBox
Benjamin Otte [Tue, 1 Aug 2017 23:20:53 +0000 (00:20 +0100)]
testgtk: Get rid of GtkEventBox

8 years agotests: Get rid of GtkEventBox
Benjamin Otte [Tue, 1 Aug 2017 22:49:42 +0000 (23:49 +0100)]
tests: Get rid of GtkEventBox

8 years agobindings: Avoid iterating array if it is never set
Daniel Boles [Tue, 1 Aug 2017 19:41:23 +0000 (20:41 +0100)]
bindings: Avoid iterating array if it is never set

If query.return_type is not one we want, binding_compose_params() is
not called, and so params remains a NULL pointer. However, the code was
then unconditionally iterating it regardless. Don't if it is still NULL.

CID 1452218 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
15. var_deref_op: Dereferencing null pointer params.

8 years agocssselector: Ensure we do not index out of bounds
Daniel Boles [Tue, 1 Aug 2017 18:57:51 +0000 (19:57 +0100)]
cssselector: Ensure we do not index out of bounds

This would only happen if the last element was deprecated, but it should
be avoided anyway.

CID 1388852 (#1 of 1): Out-of-bounds read (OVERRUN)
12. overrun-local: Overrunning array pseudo_classes of 16 32-byte
elements at element index 16 (byte offset 512) using index i + 1U (which
evaluates to 16).

8 years agoNotebook: Remove null check after dereference
Daniel Boles [Tue, 1 Aug 2017 18:45:57 +0000 (19:45 +0100)]
Notebook: Remove null check after dereference

This function clearly assumes the parameter children cannot be NULL, and
the call sites seem to perform enough checks to confirm this.

CID 1388869 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking children suggests that it may be null,
but it has already been dereferenced on all paths leading to the check.

8 years agoCalendar: Add default case to appease Coverity
Daniel Boles [Tue, 1 Aug 2017 18:42:17 +0000 (19:42 +0100)]
Calendar: Add default case to appease Coverity

CID 1432024 (#1 of 1): Uninitialized scalar variable (UNINIT)
2. uninit_use_in_call: Using uninitialized value rect.x when calling
calendar_arrow_rectangle.

Add a default case to the switch which will bail out with
g_assert_not_reached(), which should reassure Coverity that the method
is always called with a valid value that is handled in the switch.

8 years agocssbordervalue: Fix possible use of uninitialised
Daniel Boles [Tue, 1 Aug 2017 18:31:20 +0000 (19:31 +0100)]
cssbordervalue: Fix possible use of uninitialised

If value->values[i] is NULL, then values[i] was left uninitialised.
The code then reads each element of values[].

CID 1432029 (#1 of 1): Uninitialized pointer read (UNINIT)
11. uninit_use: Using uninitialized value values[i].

8 years agoStack: Fix copy-paste error
Daniel Boles [Tue, 1 Aug 2017 18:18:39 +0000 (19:18 +0100)]
Stack: Fix copy-paste error

This fixes Coverity CID 1452217.

8 years agoEntry: Fix unset icon tooltip hiding Entry tooltip
Daniel Boles [Tue, 1 Aug 2017 09:09:01 +0000 (10:09 +0100)]
Entry: Fix unset icon tooltip hiding Entry tooltip

Our ::query-tooltip handler first checks whether the pointer is over any
of the icons, returning their tooltip if so, and if not chains up to
Widget::query-tooltip in order to show the text for the widget overall.

But ensure_has_tooltip(), which exists to update :has-tooltip based on
whether ::query-tooltip is needed, only set :has-tooltip to TRUE if any
icon had a tooltip, without caring whether the widget as a whole does.

That is asymmetrical and meant that if the Entry had a tooltip, but
subsequently all icons had their tooltips unset, :has-tooltip would be
set to FALSE, and hence the tooltip for the widget would become lost.

The fix is to set :has-tooltip to TRUE if the widget has a tooltip of
its own, and we only need to check the icons if that is not the case.

https://bugzilla.gnome.org/show_bug.cgi?id=785672

8 years agoEntry: Warn about corner case hiding icon tooltips
Daniel Boles [Tue, 1 Aug 2017 12:35:39 +0000 (13:35 +0100)]
Entry: Warn about corner case hiding icon tooltips

https://bugzilla.gnome.org/show_bug.cgi?id=785672#c4

8 years agowidget: Unset PRELIGHT and ACTIVE state in _set_sensitive
Timm Bäder [Tue, 1 Aug 2017 16:43:42 +0000 (18:43 +0200)]
widget: Unset PRELIGHT and ACTIVE state in _set_sensitive

They both depend on input, which an insensitive widget does not receive.

8 years agobutton: Stop fiddling with PRELIGHT state
Timm Bäder [Tue, 1 Aug 2017 16:16:40 +0000 (18:16 +0200)]
button: Stop fiddling with PRELIGHT state

This is done automatically now and it's wrong here since it gets
executed after gesture release.

8 years agoscale: Allocate the value next to the slider
Timm Bäder [Tue, 1 Aug 2017 09:34:23 +0000 (11:34 +0200)]
scale: Allocate the value next to the slider

... when vertical. Also fixes usage of the uninitialized value_alloc.y.

8 years agoVisual Studio builds: Adapt to new glib-mkenums
Chun-wei Fan [Tue, 1 Aug 2017 08:05:57 +0000 (16:05 +0800)]
Visual Studio builds: Adapt to new glib-mkenums

glib-mkenums is now done in Python, but since the Visual Studio build
environment (cmd.exe) does not support shebang lines, we need to call
the interpretor explicitly to run the script.

This means that we need to update on how we generate
gsk/gskenumtypes.[c|h] in our projects, as at this point GTK+-3.91.x
does not require a GLib installation that ships with the Python-fied
glib-mkenums.  As a result, we adapt to this by first using Python
to call glib-mkenums.  If this fails (where the output file becomes 0
in size), then we use PERL to call the glib-mkenums script.  Note that
during the build this will cause a warning message to be displayed,
stating that '&' cannot be found, but due to the way Windows .bat script
are done, we need to live with that until a solution can be found on
this.

This is likely a problem that does not exist in the Meson builds, as
Meson will take care of calling the interpretor for us by looking at
the shebang lines for our case.

Also, clean up the .batin Windows batch script that is used to call
glib-mkenums by using a for loop in there.

8 years agotestentryicons: Set tooltips on all icons
Daniel Boles [Mon, 31 Jul 2017 18:33:38 +0000 (19:33 +0100)]
testentryicons: Set tooltips on all icons

Just to test tooltips in all cases; what was already here
should have been sufficient, but this doesn't hurt.

While here, also add some instructive placeholder text.

https://bugzilla.gnome.org/show_bug.cgi?id=780938

8 years agoMSVC builds: Allow different Python versions per toolset
Chun-wei Fan [Mon, 31 Jul 2017 09:25:56 +0000 (17:25 +0800)]
MSVC builds: Allow different Python versions per toolset

Use conditionals to select the Python installation, so that we can stick
closer to the default Visual Studio versions used to compile each official
Python releases.

This means by default:
-2013 builds use Python 3.4.x, which is built with 2010
-2015 and 2017 builds use Python 3.6.x, which is built with 2015.

Also rename PythonPath/PythonPathX64 in the property sheets to
PythonDir/PythonDirX64 repsectively, as PythonPath is the envvar name
where additional Python modules is searched for, so we don't want to get
confused with it.

Last but not least, distinguish between the Python interpretors that are
used on x64 and x86/32-bit builds for generating the libgtk4.manifest
file and the gdbus-generated sources, for consistency reasons.

8 years agoentry: Remove unused/duplicate widget in IconInfo
Daniel Boles [Sun, 30 Jul 2017 12:25:23 +0000 (13:25 +0100)]
entry: Remove unused/duplicate widget in IconInfo

8 years agowidget: Don't access highlight_resize in non-debug builds
Timm Bäder [Fri, 28 Jul 2017 19:28:32 +0000 (21:28 +0200)]
widget: Don't access highlight_resize in non-debug builds

The GtkWidgetPrivate struct only contains that member if G_ENABLE_DEBUG
is defined.

8 years agoeventbox: Remove visible-window property
Timm Bäder [Thu, 27 Jul 2017 19:53:42 +0000 (21:53 +0200)]
eventbox: Remove visible-window property

The GdkWindow that was supposed to back it is gone.

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:34 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:22 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:07 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agogtklabel: Fix touch link handling under wayland
Carlos Garnacho [Tue, 25 Jul 2017 14:18:07 +0000 (16:18 +0200)]
gtklabel: Fix touch link handling under wayland

Refactor the code updating the active link under the current coordinates
into a separate function, and call it on GtkGestureMultiPress::pressed
so the link is updated on GDK_TOUCH_BEGIN. Based on a patch by
Jan-Michael Brummer <jan.brummer@tabos.org>.

https://bugzilla.gnome.org/show_bug.cgi?id=776903

8 years agogtklinkbutton: Set cursor on button's event window
Carlos Garnacho [Tue, 25 Jul 2017 13:46:01 +0000 (15:46 +0200)]
gtklinkbutton: Set cursor on button's event window

It is not necessary to (re)set the cursor on every crossing
event, and can probably yield the wrong results if there are
multiple master devices involved. Just set it on init(), and
let the inner machinery update the cursor whenever necessary.

This patch is an adaption of commit 0daf79676 in gtk-3-22, the
side effects are not as bad here because the cursor was already
being set on the widget specifically instead of the parent
widget's, but there's still some nonetheless (plus, it's simpler)

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agowayland: Clear tablet tool cursor on proximity out
Carlos Garnacho [Tue, 25 Jul 2017 13:44:30 +0000 (15:44 +0200)]
wayland: Clear tablet tool cursor on proximity out

This ensures that the tablet tool will get the cursor updated even if it
happens to fall within the same window again on the next proximity in.

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agogdkwindow: Update cursor for tablet tools in the window
Carlos Garnacho [Tue, 25 Jul 2017 13:37:10 +0000 (15:37 +0200)]
gdkwindow: Update cursor for tablet tools in the window

This check must be done explicitly on Wayland as the master device for
tablet tools differ from the Core Pointer. This ensures that whenever a
tablet tool is inside a window and the cursor is programmatically changed,
it will be visually updated too.

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agowayland: Observe GDK_SEAT_CAPABILITY_TABLET_STYLUS on gdk_seat_get_slaves()
Carlos Garnacho [Tue, 25 Jul 2017 13:35:41 +0000 (15:35 +0200)]
wayland: Observe GDK_SEAT_CAPABILITY_TABLET_STYLUS on gdk_seat_get_slaves()

This flag wasn't being honored so far...

8 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 25 Jul 2017 18:16:59 +0000 (20:16 +0200)]
Updated Spanish translation

8 years agoUpdate Croatian translation
gogo [Tue, 25 Jul 2017 17:43:59 +0000 (17:43 +0000)]
Update Croatian translation

8 years agoactionbar: Call g_object_class_install_properties()
Kjell Ahlstedt [Mon, 24 Jul 2017 08:19:05 +0000 (10:19 +0200)]
actionbar: Call g_object_class_install_properties()

https://bugzilla.gnome.org/show_bug.cgi?id=785318

8 years agoAvoid the use of g_autofree
Matthias Clasen [Mon, 24 Jul 2017 17:24:33 +0000 (13:24 -0400)]
Avoid the use of g_autofree

We can't use this in code that may be built on win32,
so lets just not use it at all.

8 years agowidget: Stop invalidating recursively
Timm Bäder [Sun, 23 Jul 2017 19:39:38 +0000 (21:39 +0200)]
widget: Stop invalidating recursively

8 years agoupdated Punjabi Translation
A S Alam [Sun, 23 Jul 2017 14:59:04 +0000 (09:59 -0500)]
updated Punjabi Translation

8 years agoUpdate Friulian translation
Fabio Tomat [Sat, 22 Jul 2017 21:41:59 +0000 (21:41 +0000)]
Update Friulian translation

8 years agonotebook: Set tabs child visible before allocating a size
Timm Bäder [Sat, 22 Jul 2017 12:13:03 +0000 (14:13 +0200)]
notebook: Set tabs child visible before allocating a size

Otherwise we might skip them here, then set child-visible to TRUE and
then later snapshot them even though they have no valid size.

8 years agocssstylechange: Fix change printing
Timm Bäder [Sat, 22 Jul 2017 07:22:56 +0000 (09:22 +0200)]
cssstylechange: Fix change printing

Only print the old value once, above the new one.

8 years agoUpdate Indonesian translation
Kukuh Syafaat [Sat, 22 Jul 2017 05:15:36 +0000 (05:15 +0000)]
Update Indonesian translation

8 years agoflowbox: Fix get_child_at_pos
Timm Bäder [Sat, 22 Jul 2017 04:52:08 +0000 (06:52 +0200)]
flowbox: Fix get_child_at_pos

8 years agotestflowbox: hexpand the flowbox
Timm Bäder [Sat, 22 Jul 2017 04:51:19 +0000 (06:51 +0200)]
testflowbox: hexpand the flowbox

8 years agotests: Include system headers appropriately
Chun-wei Fan [Fri, 21 Jul 2017 08:00:44 +0000 (16:00 +0800)]
tests: Include system headers appropriately

Don't include unistd.h on Windows, and include the appropriate headers on
Windows as necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agotests/rendernode-create-tests.c: Don't use VLAs
Chun-wei Fan [Fri, 21 Jul 2017 07:58:38 +0000 (15:58 +0800)]
tests/rendernode-create-tests.c: Don't use VLAs

Replace uses of VLAs (variable-length arrays) using g_newa(), since
Visual Studio builds will unlikely ever support VLAs (which became optional
in C11).

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agogtk/gtkprintoperation-win32.c: Don't call gtk_widget_set_allocation()
Chun-wei Fan [Fri, 21 Jul 2017 07:53:53 +0000 (15:53 +0800)]
gtk/gtkprintoperation-win32.c: Don't call gtk_widget_set_allocation()

This function was removed recently.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agowayland: Implement support for tablet wheel scrolling
Jason Gerecke [Mon, 12 Jun 2017 22:41:51 +0000 (15:41 -0700)]
wayland: Implement support for tablet wheel scrolling

Adds support for creating scroll events from Wayland tablet wheel events.
Even though no Wacom tablet puck has a smooth-scrolling wheel, both event
types need to be generated to make the upper layers happy.

https://bugzilla.gnome.org/show_bug.cgi?id=783716

8 years agowayland: Make function to create scroll event more generic
Carlos Garnacho [Thu, 20 Jul 2017 11:26:00 +0000 (13:26 +0200)]
wayland: Make function to create scroll event more generic

Add GdkWaylandPointerData and GdkDevice arguments so it can be
used across master devices.

https://bugzilla.gnome.org/show_bug.cgi?id=783716

8 years agowayland: Get implicit grab serial information from tablet devices
Jason Gerecke [Fri, 23 Jun 2017 18:17:53 +0000 (11:17 -0700)]
wayland: Get implicit grab serial information from tablet devices

If a tablet device is used to perform actions like window moving or resizing,
GTK must provide the correct implicit grab serial number over Wayland to Mutter
in order for the action to succeed. This commit adds tablet support to the
implicit serial getters.

https://bugzilla.gnome.org/show_bug.cgi?id=777333

8 years agogdkgears: Add window content spacing back
Timm Bäder [Thu, 20 Jul 2017 10:41:12 +0000 (12:41 +0200)]
gdkgears: Add window content spacing back

This was lost when border-width was removed.

8 years agooverlay: Fix child widget allocation
Timm Bäder [Thu, 20 Jul 2017 10:40:46 +0000 (12:40 +0200)]
overlay: Fix child widget allocation

Just adding the overlay's own position is wrong now.

8 years agooverlay: Keep the main child at the bottom
Timm Bäder [Thu, 20 Jul 2017 10:33:57 +0000 (12:33 +0200)]
overlay: Keep the main child at the bottom

Since gtk_bin_add does a gtk_widget_set_parent call, we cannot use it in
a GtkBin implementation that has multiple child widgets and cares about
their order.

8 years agoMove GdkWindowWindowClass to private headers
Matthias Clasen [Thu, 20 Jul 2017 03:09:02 +0000 (23:09 -0400)]
Move GdkWindowWindowClass to private headers

This enum is no longer used in public api.

8 years agoDrop an unused typedef
Matthias Clasen [Thu, 20 Jul 2017 03:01:18 +0000 (23:01 -0400)]
Drop an unused typedef

GdkWindowRedirect is not used anywhere anymore.

8 years agowayland: Throttle system bell requests
Jonas Ådahl [Mon, 13 Mar 2017 06:42:38 +0000 (14:42 +0800)]
wayland: Throttle system bell requests

If a bad behaving application tries to make the window/display beep too
often, throttle the beep requests so that we don't end up filling the
Wayland socket queue.

The throttle is set to 50 beeps per second, which far more beeps than
will ever make any sense from a user experience point of view, but will
avoid terminating due to an excessive amount of requests.

https://bugzilla.gnome.org/show_bug.cgi?id=778188

8 years agowayland: Make beep requests go through the GdkDisplay
Jonas Ådahl [Mon, 13 Mar 2017 06:33:06 +0000 (14:33 +0800)]
wayland: Make beep requests go through the GdkDisplay

This way we can add things like throttling.

https://bugzilla.gnome.org/show_bug.cgi?id=778188

8 years agoSummarize changes so far
Matthias Clasen [Thu, 20 Jul 2017 01:52:10 +0000 (21:52 -0400)]
Summarize changes so far

This is a high-level view of what was just merged.

8 years agotestgtk: Remove unused local variable
Timm Bäder [Wed, 19 Jul 2017 12:07:30 +0000 (14:07 +0200)]
testgtk: Remove unused local variable

8 years agoGtkStyleContext: Create path node in _new
Timm Bäder [Wed, 19 Jul 2017 11:13:28 +0000 (13:13 +0200)]
GtkStyleContext: Create path node in _new

So we can avoid creating a GtkCssPathNode in _init and then throwing it
away right after when using the _new_with_node constructor, which is the
one we use for all widgets.

8 years agoGtkStyleContext: Remove property cache
Timm Bäder [Wed, 19 Jul 2017 11:07:48 +0000 (13:07 +0200)]
GtkStyleContext: Remove property cache

It was only used for widget style properties which don't exist anymore.

8 years agowidget-factory: fix page 3 widget expand
Timm Bäder [Tue, 18 Jul 2017 12:13:05 +0000 (14:13 +0200)]
widget-factory: fix page 3 widget expand

The treeview/listbox on the left side should not expand.

8 years agoGdkWindow: Default to unfocused
Timm Bäder [Tue, 18 Jul 2017 10:36:35 +0000 (12:36 +0200)]
GdkWindow: Default to unfocused

Don't set the have_focused field of the window's toplevel to TRUE by
default and don't set the FOCUSED state in gdk_window_map. This a means
toplevel window's state is what the WM expects, and the FOCUSED state
will be set anyway when we map the window and receive a _NET_WM_STATE
message.

8 years agostatusbar: Inherit from GtkWidget
Timm Bäder [Mon, 17 Jul 2017 11:21:21 +0000 (13:21 +0200)]
statusbar: Inherit from GtkWidget

8 years agomodelmenuitem: Care about GtkAccelLabel in get_text
Timm Bäder [Sun, 16 Jul 2017 15:19:59 +0000 (17:19 +0200)]
modelmenuitem: Care about GtkAccelLabel in get_text

8 years agomodelmenuitem: Update indicator visibility when has_indicator changes
Timm Bäder [Sun, 16 Jul 2017 15:19:41 +0000 (17:19 +0200)]
modelmenuitem: Update indicator visibility when has_indicator changes

8 years agomenushell: Hide model submenus by default
Timm Bäder [Sun, 16 Jul 2017 15:19:17 +0000 (17:19 +0200)]
menushell: Hide model submenus by default

8 years agoGtkCheckMenuItem: Remove snapshot-indicator vfunc
Timm Bäder [Sun, 16 Jul 2017 15:18:17 +0000 (17:18 +0200)]
GtkCheckMenuItem: Remove snapshot-indicator vfunc

Let the widget snapshot all child widgets and control the visibility of
those child widgets instead.

8 years agolabel: Remove GtkEventBox mention from docs
Timm Bäder [Sun, 16 Jul 2017 14:45:36 +0000 (16:45 +0200)]
label: Remove GtkEventBox mention from docs

Packing the label inside a GtkEventBox is not necessary anymore for it
to receive events.

8 years agoimage: Remove irrelevant code sample
Timm Bäder [Sun, 16 Jul 2017 14:42:39 +0000 (16:42 +0200)]
image: Remove irrelevant code sample

Both the description and the sample itself are obsolete or uninteresting
now that all widgets can receive events.

8 years agospinbutton: Fix css node docs
Timm Bäder [Sun, 16 Jul 2017 13:46:09 +0000 (15:46 +0200)]
spinbutton: Fix css node docs

8 years agotreeview: Fix row drag icon offsets
Timm Bäder [Sun, 16 Jul 2017 07:37:17 +0000 (09:37 +0200)]
treeview: Fix row drag icon offsets

8 years agotreeviewcolumn: Remove input window
Timm Bäder [Sat, 15 Jul 2017 18:43:52 +0000 (20:43 +0200)]
treeviewcolumn: Remove input window